    <h1><?php echo $data['type']?></h1>

        <?php echo nl2br(CHtml::encode($data['message']))?>

        <p class="file"><?php echo CHtml::encode($data['file'])."({$data['line']})"?></p>
        <?php echo $this->renderSourceCode($data['file'],$data['line'],$this->maxSourceLines); ?>

            <div class="traces">
            
        <h2>Stack Trace</h2>
        <?php $count=0; ?>
        <?php foreach($data['traces'] as $n => $trace): ?>
        <?php
            if($this->isCoreCode($trace))
                $cssClass='core collapsed';
            else if(++$count>3)
                $cssClass='app collapsed';
            else
                $cssClass='app expanded';
            $hasCode=$trace['file']!=='unknown' && is_file($trace['file']);
        ?>

        <?php
            echo "\n";
            echo CHtml::encode($trace['file'])."(".$trace['line'].")";
            echo ': ';
            if(!empty($trace['class']))
                echo "{$trace['class']}{$trace['type']}";
            echo "{$trace['function']}(";
            if(!empty($trace['args']))
                echo CHtml::encode($this->argumentsToString($trace['args']));
            echo ')';
        ?>
        <?php endforeach; ?>
    </div>
